package List;

import java.util.LinkedList;
import java.util.List;
import java.util.Random;

/**
 * @author LIBOFEI
 * @ClassName LinkedTest
 * @description
 * @date 2020/7/20 11:34
 * @Version 1.0
 **/
public class LinkedTest {


    public static void main(String[] args) {

        int i = 1;
        int j;
        j = i++;
        System.out.println(i);
        System.out.println(j);
        List<String> list = new LinkedList<>();

        list.add("李三");
        list.add("李四");
        list.add("王五");
        list.add("赵六");
        list.add("徐七");

        String wang = list.get(2);

        Random random = new Random();

        System.out.println(random.nextInt(3));
        System.out.println(random.nextInt(3));
        System.out.println(random.nextInt(13));
        System.out.println(random.nextInt(4));
        System.out.println(random.nextInt(5));
    }
}
